package com.pyb.java.commonutil.image;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.widget.ImageView;

import java.io.File;

public interface ImageDisplayLoader {
    void display(ImageView imageView, String url, ImageLoadListener listener, DisplayOption opts);
    void display(ImageView imageView, String url);
    void display(ImageView imageView,String url,int width,int height);
    void display(ImageView imageView,String url,int defaultImage);
    void display(ImageView imageView, Uri url, int defaultImage);
    void display(ImageView imageView, String url, Drawable drawable);
    void displayFile(ImageView imageView, File file, int defaultImage);
    void displayWithCorner(ImageView image, String url,int defaultImg);
    void displayWithCircle(ImageView image,String url);
    void displayWithCircle(ImageView image,int imageRes);
    void displayWithByte(ImageView image,byte[] bytes,int defaultImage);
    void resumeRequest(Context context);
    void pauseRequest(Context context);

    Bitmap syncLoad(File file);

    Bitmap syncLoad(String url);

    void syncLoad(String url, ImageLoadListener listener);
}
